<?php

include_once dirname(__FILE__) . "/log.php";


const ec_ok = 0;
const ec_param_error = 1;
const ec_inf_error = 2;
const ec_post_error = 3;
const ec_conf_error = 4;
const ec_perm_error = 5;
const ec_db_conf_error = 6;
const ec_db_error = 7;
const ec_open_qq_error = 8;
const ec_dish_not_enough_error = 9;
const ec_update_favor_error = 10;

global $err_code;
$err_code = ec_ok;

global $err_msg;
$err_msg =  array(
    ec_ok => "ok",
    ec_param_error => "param error",
    ec_inf_error => "unsupported interface error",
    ec_post_error => "post data invalid",
    ec_conf_error => "conf file error",
    ec_perm_error => "file permission error",
    ec_db_conf_error => "db conf error",
    ec_db_error => "db error",
    ec_open_qq_error => "open qq error",
    ec_dish_not_enough_error => "dish not enough error",
    ec_update_favor_error => "update favor table error",
);

?>
